import Vue from 'vue'
import App from './App'
import pageBox from './components/getFormId/getFormId.vue'

Vue.config.productionTip = false

App.mpType = 'app'

// Array.prototype.statisticalFieldNumber = function(arr) {
//     return arr.reduce(function (prev, next) {
//         prev[next] = (prev[next] + 1) || 1;
//         return prev;
//     }, {});
// }


// Array.prototype.mapField = function(arr, key) {
//     let newArr =  arr.map(key)
//     console.log(newArr);
//     return statisticalFieldNumber(newArr)
// }


Vue.component('pageBox',pageBox)

const app = new Vue({
    ...App
})
app.$mount()
